<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: element   (YUI Library)</title>
	
	<link rel="shortcut icon" href="assets/yui_icon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1>
        	<a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a>
        	<img src="assets/yui_icon.png" alt="YUI文档中文化" />
        </h1>
        <h3>element&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_element.html" title="element">element</a>
                
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                   
                    <h3>模块：element
                    


                    </h3>
                    <div class="description summary">
                        Element provides an wrapper object to simplify adding
event listeners, using dom methods, and managing attributes. 
Element提供了一个封装的对象，用于简化添加事件、调用dom方法、属性(attribute)管理。
                    </div>



                <div class="yui-gc">
                    <div class="yui-u first">

                            <p>本模块包含以下类：</p>
                            <script>
                            //var YUI_CLASS_LIST = [{"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "Provides Attribute configurations.\u63d0\u4f9b\u5bf9Attribute\u7684\u6784\u9020\u3002", "guessedname": "Attribute", "name": "YAHOO.util.Attribute"}, {"extends": {"superclass": {"YAHOO.util.EventProvider": "YAHOO.util.EventProvider"}, "events": {}, "configs": {}, "properties": {"YAHOO.util.EventProvider": []}, "methods": {"YAHOO.util.EventProvider": [{"access": "", "deprecated": false, "name": "createEvent"}, {"access": "", "deprecated": false, "name": "fireEvent"}, {"access": "", "deprecated": false, "name": "hasEvent"}, {"access": "", "deprecated": false, "name": "subscribe"}, {"access": "", "deprecated": false, "name": "unsubscribe"}, {"access": "", "deprecated": false, "name": "unsubscribeAll"}]}}, "description": "Provides and manages YAHOO.util.Attribute instances.\u63d0\u4f9b\u548c\u7ba1\u7406YAHOO.util.Attribute\u5b9e\u4f8b\u3002", "guessedname": "AttributeProvider", "name": "YAHOO.util.AttributeProvider"}, {"extends": {"superclass": {"YAHOO.util.AttributeProvider": "YAHOO.util.AttributeProvider", "YAHOO.util.EventProvider": "YAHOO.util.EventProvider"}, "events": {}, "configs": {}, "properties": {"YAHOO.util.AttributeProvider": [], "YAHOO.util.EventProvider": []}, "methods": {"YAHOO.util.AttributeProvider": [{"access": "", "deprecated": true, "name": "configureAttribute"}, {"access": "", "deprecated": false, "name": "fireBeforeChangeEvent"}, {"access": "", "deprecated": false, "name": "fireChangeEvent"}, {"access": "", "deprecated": false, "name": "get"}, {"access": "", "deprecated": false, "name": "getAttributeKeys"}, {"access": "", "deprecated": false, "name": "refresh"}, {"access": "", "deprecated": true, "name": "register"}, {"access": "", "deprecated": false, "name": "resetValue"}, {"access": "", "deprecated": false, "name": "set"}, {"access": "", "deprecated": false, "name": "setAttributeConfig"}, {"access": "", "deprecated": false, "name": "setAttributes"}], "YAHOO.util.EventProvider": [{"access": "", "deprecated": false, "name": "createEvent"}, {"access": "", "deprecated": false, "name": "fireEvent"}, {"access": "", "deprecated": false, "name": "hasEvent"}, {"access": "", "deprecated": false, "name": "subscribe"}, {"access": "", "deprecated": false, "name": "unsubscribe"}, {"access": "", "deprecated": false, "name": "unsubscribeAll"}]}}, "description": "Element provides an wrapper object to simplify adding\nevent listeners, using dom methods, and managing attributes. \nElement\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5c01\u88c5\u7684\u5bf9\u8c61\uff0c\u7528\u4e8e\u7b80\u5316\u6dfb\u52a0\u4e8b\u4ef6\u3001\u8c03\u7528dom\u65b9\u6cd5\u3001\u5c5e\u6027(attribute)\u7ba1\u7406\u3002", "guessedname": "Element", "name": "YAHOO.util.Element"}];
                            </script>
                            <div id="splash_classList">
                                <ul>
                                    <li><a href="YAHOO.util.Attribute.html" title="YAHOO.util.Attribute" id="class_0">Attribute</a></li>
                                    <li><a href="YAHOO.util.AttributeProvider.html" title="YAHOO.util.AttributeProvider" id="class_1">AttributeProvider</a></li>
                                    <li><a href="YAHOO.util.Element.html" title="YAHOO.util.Element" id="class_2">Element</a></li>
                                </ul>
                            </div>
                    </div>
                    <div class="yui-u">

                        </div>
                </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class="selected"><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.util.Attribute.html" title="YAHOO.util.Attribute">YAHOO.util.Attribute</a></li>
                                <li class=""><a href="YAHOO.util.AttributeProvider.html" title="YAHOO.util.AttributeProvider">YAHOO.util.AttributeProvider</a></li>
                                <li class=""><a href="YAHOO.util.Element.html" title="YAHOO.util.Element">YAHOO.util.Element</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>文件</h4>
                        <ul class="content">        
                                <li class=""><a href="element.js.html" title="element.js">element.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.util.Element.html#method_addClass", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "addClass"}, {"url": "YAHOO.util.Element.html#method_addListener", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "addListener"}, {"url": "YAHOO.util.Element.html#method_appendChild", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "appendChild"}, {"url": "YAHOO.util.Element.html#method_appendTo", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "appendTo"}, {"url": "YAHOO.util.Element.html#event_appendTo", "access": "", "host": "YAHOO.util.Element", "type": "event", "name": "appendTo"}, {"url": "YAHOO.util.Element.html#event_available", "access": "", "host": "YAHOO.util.Element", "type": "event", "name": "available"}, {"url": "YAHOO.util.Element.html#event_beforeAppendTo", "access": "", "host": "YAHOO.util.Element", "type": "event", "name": "beforeAppendTo"}, {"url": "YAHOO.util.Element.html#event_beforeElementChange", "access": "", "host": "YAHOO.util.Element", "type": "event", "name": "beforeElementChange"}, {"url": "YAHOO.util.Attribute.html#method_configure", "access": "", "host": "YAHOO.util.Attribute", "type": "method", "name": "configure"}, {"url": "YAHOO.util.AttributeProvider.html#method_configureAttribute", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "configureAttribute"}, {"url": "YAHOO.util.Element.html#event_contentReady", "access": "", "host": "YAHOO.util.Element", "type": "event", "name": "contentReady"}, {"url": "YAHOO.util.Element.html#property_DOM_EVENTS", "access": "", "host": "YAHOO.util.Element", "type": "property", "name": "DOM_EVENTS"}, {"url": "YAHOO.util.Element.html#config_element", "access": "", "host": "YAHOO.util.Element", "type": "config", "name": "element"}, {"url": "YAHOO.util.Element.html#event_elementChange", "access": "", "host": "YAHOO.util.Element", "type": "event", "name": "elementChange"}, {"url": "YAHOO.util.AttributeProvider.html#method_fireBeforeChangeEvent", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "fireBeforeChangeEvent"}, {"url": "YAHOO.util.AttributeProvider.html#method_fireChangeEvent", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "fireChangeEvent"}, {"url": "YAHOO.util.Element.html#method_fireQueue", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "fireQueue"}, {"url": "YAHOO.util.AttributeProvider.html#method_get", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "get"}, {"url": "YAHOO.util.AttributeProvider.html#method_getAttributeKeys", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "getAttributeKeys"}, {"url": "YAHOO.util.Element.html#method_getElementsByClassName", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "getElementsByClassName"}, {"url": "YAHOO.util.Element.html#method_getElementsByTagName", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "getElementsByTagName"}, {"url": "YAHOO.util.Element.html#method_getStyle", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "getStyle"}, {"url": "YAHOO.util.Attribute.html#property_getter", "access": "", "host": "YAHOO.util.Attribute", "type": "property", "name": "getter"}, {"url": "YAHOO.util.Attribute.html#method_getValue", "access": "", "host": "YAHOO.util.Attribute", "type": "method", "name": "getValue"}, {"url": "YAHOO.util.Element.html#method_hasChildNodes", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "hasChildNodes"}, {"url": "YAHOO.util.Element.html#method_hasClass", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "hasClass"}, {"url": "YAHOO.util.Element.html#method_initAttributes", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "initAttributes"}, {"url": "YAHOO.util.Element.html#method_insertBefore", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "insertBefore"}, {"url": "YAHOO.util.Attribute.html#property_method", "access": "", "host": "YAHOO.util.Attribute", "type": "property", "name": "method"}, {"url": "YAHOO.util.Attribute.html#property_name", "access": "", "host": "YAHOO.util.Attribute", "type": "property", "name": "name"}, {"url": "YAHOO.util.Element.html#method_on", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "on"}, {"url": "YAHOO.util.Attribute.html#property_owner", "access": "", "host": "YAHOO.util.Attribute", "type": "property", "name": "owner"}, {"url": "YAHOO.util.Attribute.html#property_readOnly", "access": "", "host": "YAHOO.util.Attribute", "type": "property", "name": "readOnly"}, {"url": "YAHOO.util.Attribute.html#method_refresh", "access": "", "host": "YAHOO.util.Attribute", "type": "method", "name": "refresh"}, {"url": "YAHOO.util.AttributeProvider.html#method_refresh", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "refresh"}, {"url": "YAHOO.util.AttributeProvider.html#method_register", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "register"}, {"url": "YAHOO.util.Element.html#method_removeChild", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "removeChild"}, {"url": "YAHOO.util.Element.html#method_removeClass", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "removeClass"}, {"url": "YAHOO.util.Element.html#method_removeListener", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "removeListener"}, {"url": "YAHOO.util.Element.html#method_replaceChild", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "replaceChild"}, {"url": "YAHOO.util.Element.html#method_replaceClass", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "replaceClass"}, {"url": "YAHOO.util.Attribute.html#method_resetConfig", "access": "", "host": "YAHOO.util.Attribute", "type": "method", "name": "resetConfig"}, {"url": "YAHOO.util.Attribute.html#method_resetValue", "access": "", "host": "YAHOO.util.Attribute", "type": "method", "name": "resetValue"}, {"url": "YAHOO.util.AttributeProvider.html#method_resetValue", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "resetValue"}, {"url": "YAHOO.util.AttributeProvider.html#method_set", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "set"}, {"url": "YAHOO.util.AttributeProvider.html#method_setAttributeConfig", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "setAttributeConfig"}, {"url": "YAHOO.util.AttributeProvider.html#method_setAttributes", "access": "", "host": "YAHOO.util.AttributeProvider", "type": "method", "name": "setAttributes"}, {"url": "YAHOO.util.Element.html#method_setStyle", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "setStyle"}, {"url": "YAHOO.util.Attribute.html#property_setter", "access": "", "host": "YAHOO.util.Attribute", "type": "property", "name": "setter"}, {"url": "YAHOO.util.Attribute.html#method_setValue", "access": "", "host": "YAHOO.util.Attribute", "type": "method", "name": "setValue"}, {"url": "YAHOO.util.Element.html#method_subscribe", "access": "", "host": "YAHOO.util.Element", "type": "method", "name": "subscribe"}, {"url": "YAHOO.util.Attribute.html#property_validator", "access": "", "host": "YAHOO.util.Attribute", "type": "property", "name": "validator"}, {"url": "YAHOO.util.Attribute.html#property_value", "access": "", "host": "YAHOO.util.Attribute", "type": "property", "name": "value"}, {"url": "YAHOO.util.Attribute.html#property_writeOnce", "access": "", "host": "YAHOO.util.Attribute", "type": "property", "name": "writeOnce"}];
</script>
</body>
</html>
